﻿using DevTeam;

using System;
using System.Data;

namespace ConfExpert.Forms.Depo._7C
{
    public partial class NumuneSipDurum : XPopupForm
    {
        DataSet s;
        public NumuneSipDurum(DataSet s)
        {
            InitializeComponent();
            this.s = s;
        }

        private void NumuneSipDurum_Load(object sender, EventArgs e)
        {

            gv1.Init(s.Tables[0]);
            gv1.AddDetailGrid(gv2, "ProductId");

            gv1.FormatAsNumber(2, "QtyNeeded", "QtySelected");
            gv1.AddSummary("QtyNeeded", "QtySelected");
            gv1.MakeReadOnly();
            gv2.MakeReadOnly();
            gv1.BestFitColumns();
            gv2.BestFitColumns();

            splitContainerControl1.AutoSize();
        }
    }
}
